import Vue from 'vue'

import 'normalize.css/normalize.css' // A modern alternative to CSS resets

import ElementUI from 'element-ui'
//import '@/styles/theme1/index.scss' // global css
import 'font-awesome/css/font-awesome.min.css'
import 'element-ui/lib/theme-chalk/index.css';
import locale from 'element-ui/lib/locale/lang/zh-CN' // lang i18n
import App from './App'
import store from './store'
import router from './router'

import '@/icons' // icon
import '@/permission' // permission control



import Mixin from './mixins';
import './filter';

Vue.mixin(Mixin);
localStorage.theme = 't2'

Vue.use(ElementUI, { size: "mini", locale })
Vue.use(require('vue-wechat-title'))
import MyPlugin  from '@/utils/print'

Vue.use(MyPlugin)
import reg from '@/utils/validate'

Vue.prototype.$RegExp = reg
import './directive/drag'
Vue.config.productionTip = false
Vue.filter('formatText',function(val){
  if(val)
    return val
  else
    return '--'
})
new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})
